<%
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel=stylesheet href="..\CSS\styleform.css" type="text/css">
<title>THEO DÕI XỬ LÝ TỜ TRÌNH</title>
<script language="javascript" src="..\JS\toolBarButton.js"></script>
<!--#include file="..\CheckSession.inc"-->
<!--#include file="..\jvFunction.inc"-->
<!--#include file=..\funTab.inc-->
</head>
<%
bchon=Request("bchon")
%>
<script language=javascript>
function TxtSoden_onkeyup(str){
	Noidung.TxtDenso.value=Noidung.TxtSoden.value
}
function TxtNgayBDXL_onkeyup(str){
var keycode
keycode=window.event.keyCode
if (isEdit(keycode,str)){
	Noidung.TxtNgayBDXL.value=editdate(trim(str))
}
}
function TxtHanXuLy_onkeyup(str){
var keycode
keycode=window.event.keyCode
if (isEdit(keycode,str)){
	Noidung.TxtHanXuLy.value=editdate(trim(str))
}
}
function TxtNgayhoanthanh_onkeyup(str){
var keycode
keycode=window.event.keyCode
if (isEdit(keycode,str)){
	Noidung.TxtNgayhoanthanh.value=editdate(trim(str))
}
}
function OK(){
	bsoden=Noidung.TxtSoden.value;
	bdenso=Noidung.TxtDenso.value;
	bnbdxl=Noidung.TxtNgayBDXL.value;
	bhxl=Noidung.TxtHanXuLy.value;
	bnht=Noidung.TxtNgayhoanthanh.value;
	bskh=Noidung.TxtSKH.value;
	bdv=Noidung.cboDonVi.value;
	bty=Noidung.TxtTrichyeu.value;
	bttxl=Noidung.cbohoanthanh.value;
	Noidung.target="right";
	Noidung.action="frmtdxltotrinh.asp?bsoden="+bsoden+"&bdenso="+bdenso+"&bnbdxl="+bnbdxl+"&bhxl="+bhxl+"&bnht="+bnht+"&bskh="+bskh+"&bdv="+bdv+"&bty="+bty+"&bcomm=search"+"&bchon="+"<%=bchon%>"+"&bttxl="+bttxl;
	Noidung.submit();
	window.close();
}
</script>
<body style="font-family: Times New Roman" topmargin=0 leftmargin=0 bgcolor=#F8F9D9>
<form method="post" name="Noidung">
<table cellspacing=0 cellpadding=0 border=0 style="table-layout: fixed; height: 1px">
	<tr><td style="width: 100%; height: 1px; background-color: white">&nbsp;</td></tr>
</table>
<table id=toolbar cellspacing="0" >
	<tr>
		<td>
			<table cellspacing="0">
				<tr>
					<td class="toolBarButton" id=btnSearch onaction="javascript:OK()"><img src="..\images\icons\button_search.gif" align="absmiddle" width="16" height="20"> <b>Tìm kiếm</b></td>
					<td class="toolBarButton" id=btnCancel onaction="javascript:window.close()"><img src="..\images\icons\button_cancel.gif" align="absmiddle" width="16" height="20"><b>Bỏ qua</b></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table cellspacing=0 cellpadding=0 border=0 style="table-layout: fixed; height: 1px">
	<tr><td style="width: 100%; height: 1px; background-color: 808080">&nbsp;</td></tr>
</table>
</table>
<table class="controlbox" width="100%">	
<tr> 
<td valign="top">
<FIELDSET> 
<LEGEND><b>Thông tin tìm kiếm :</b></LEGEND> 
<table width="100%" bgColor="#BDD5D0" border="0" cellpadding="0" cellSpacing="0" style="FONT-SIZE: 9pt;Font-family:Arial" >
      <tr>
        <td width="16%" >&nbsp;&nbsp;Số đến</td>
        <td width="18%"><input name=TxtSoden style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtSoden_onkeyup(this.value)"></td>
		<td width="16%" align=center>===></td>
		<td width="18%"><input name=TxtDenso style="font-family:times new roman;width:100%" size="20"></td>
        <td width="16%" align=center>Năm</td>
		<td width="16%"><input name=TxtNam maxlength=4 style="font-family:times new roman;width:100%; size="20" size="20" value=<%=year(Date())%> ></td>
      </tr>
	  <%if bchon="all" then%>
	<tr>
		<td width="16%" >&nbsp;&nbsp;Ngày đến</td>
		<td width="18%"><input name=TxtNgayBDXL style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtNgayBDXL_onkeyup(this.value)"></td>
		<td width="16%" align="center">Hạn xử lý</td>
		<td width="18%"><input name=TxtHanXuLy style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtHanXuLy_onkeyup(this.value)"></td>
		<td width="16%" align="center">Ngày HT</td>
		<td width="16%" colspan=2><input name=TxtNgayhoanthanh disabled style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtNgayhoanthanh_onkeyup(this.value)"></td>
	  </tr>
	  <%else%>
      <tr>
		<td width="16%" >&nbsp;&nbsp;Ngày đến</td>
		<td width="18%"><input name=TxtNgayBDXL style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtNgayBDXL_onkeyup(this.value)"></td>
		<td width="16%" align="center">Hạn xử lý</td>
		<td width="18%"><input name=TxtHanXuLy style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtHanXuLy_onkeyup(this.value)"></td>
		<td width="16%" align="center">Ngày HT</td>
		<td width="16%" colspan=2><input name=TxtNgayhoanthanh style="font-family:times new roman;width:100%" size="20" LANGUAGE=javascript onkeyup="return TxtNgayhoanthanh_onkeyup(this.value)"></td>
	  </tr>
	  <%end if%>
	  <tr>
        <td width="16%" >&nbsp;&nbsp;Số ký hiệu</td>
		<td width="34%" colspan=2><input name=TxtSKH style="font-family:times new roman;width:100%" size="20"></td>
       <td width="18%" align="center">Đơn vị xử lý</td>
        <td width="32%" colspan=3>
   		<%if bchon="all" then%>
			<Select name=cboDonVi style="font-family:times new roman;width:100%">
		<%else%>
			<Select name=cboDonVi disabled style="font-family:times new roman;width:100%">
		<%end if%>
        		<option value=""></option>
        		<%
       			sSQL="Select * from DonVi where madonvi like '00%00' and madonvi <> '000000' order by Madonvi"
				Set Rec=server.CreateObject("ADODB.Recordset")
				Rec.CursorType=3
				Rec.CacheSize=5
				Rec.Open sSQL,Conn
				Do While not Rec.EOF
			%>
				<option value=<%=Rec("MaDonvi")%>><% =funTab(Rec("MaDonvi"))%><%=Rec("TENDonVi")%></option>
			<%
					Rec.movenext
				Loop
				Rec.close
				Set Rec=nothing
			%>	
        	</select>
        </td>           
      </tr>   
	  <tr>       
	  <td width="16%" >&nbsp;&nbsp;Trích yếu</td>
        <td width="34%" colspan=2>
        <input name=TxtTrichyeu style="font-family:times new roman;width:100%" size="20"></td>
		<td width="18%">Trạng thái xử lý</td>
		<td width="32%" colspan=3>
		<Select name=cbohoanthanh style="font-family:times new roman;width:100%">
			<option value=""></option>
			<option value="1">Đúng hạn</option>
			<option value="2">Quá hạn</option>
			<option value="3">Chưa xử lý</option>
		</select>
		</td>
		</tr>
	  </table>
</FIELDSET>
			</td>
		</tr>
	</table>
</form>
<script>
		var btn;	
		btn = document.getElementById("btnSearch"); createButton(btn);	btn.setEnabled(true);
		btn = document.getElementById("btnCancel"); createButton(btn);	btn.setEnabled(true);
</script>
</body>
</html>